package com.dw.widget.slideshow.config.view.list;

import com.dw.widget.slideshow.R;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class ListNextItemView extends BaseListItemView {

	private Context mContext;
	private ListItemIconView iconView;
	private TextView textView;
	private ImageView imageView;
	
	public ListNextItemView(Context context) {
		
		this(context, null);
	}
	
	public ListNextItemView(Context context, AttributeSet attrs) {
		super(context, attrs);
		mContext = context;
	}

	@Override
	protected void onFinishInflate() {

		super.onFinishInflate();

		iconView = (ListItemIconView)findViewById(R.id.listitemnext_icon);
		textView = (TextView)findViewById(R.id.listitemnext_text);
		imageView = (ImageView)findViewById(R.id.listitemnext_img);
	}

	public void setIconBackgroundColor(int color)
	{
		iconView.setBackgroundColor(color);
	}
	
	public void setIcon(int resId)
	{
		iconView.setIcon(resId);
	}

	public void setText(String text)
	{
		textView.setText(text);
	}
	
	public void setArrowDrawble(int drawable)
	{
		imageView.setImageResource(drawable);
	}
	
	public TextView getTextView()
	{
		return textView;
	}
}
